package org.itboys.mobile.dto.count;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;


/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_结算（购物车实体，只取products)_商品_实体
 */
public class SundayCountProductDto extends MobileBaseDto {
    //基本属性
    private Long cartId;//购物车Id
    private BigDecimal price;//零售价或销售价

    private String name;//产品名称
    private String number;//产品编号
    private String image;//产品主图
    private String standard;//规格
    private Integer num;//数量
    private Integer type;//1,商城，3，商户
    private Integer store;//库存。2017年8月17日新增
    private Integer status;//0失效，1正常


    public SundayCountProductDto() {

    }

    public SundayCountProductDto(long id, String createTime, String createDate,
                                 Long cartId, BigDecimal price, String name, String number, String image, String standard, Integer num,
                                 Integer type, Integer status, Integer store) {
        super(id, createTime,createDate);
        this.cartId = cartId;
        this.price = price;
        this.name = name;
        this.number = number;
        this.image = image;
        this.standard = standard;
        this.num=num;
        this.type = type;
        this.store=store;
        this.status = status;

    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



    public String getTypeStr() {
        String typeStr="";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="主机";
                break;
            case 2:
                typeStr="配件";
                break;
            default:
                break;
        }
        return typeStr;
    }
 /*   public String getStatusStr() {
        String statusStr="";
        if(status==null)return statusStr;

        switch (status) {
            case 0:
                statusStr="正常。";
                break;
            case 1:
                statusStr="失效";
                break;
            default:
                break;
        }
        return statusStr;
    }*/

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }
}
